<%/* I (David P Shenba) licenses this file to you under the Apache License, 
 * Version 2.0 (the "License"); you may not use this 
 * file except in compliance with the License.  You may 
 * obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */ %>
<%@ page contentType="text/html; charset=utf-8" %>

<%@ taglib uri="/WEB-INF/classes/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/classes/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/classes/struts-logic.tld" prefix="logic" %>

<html:html>
<title>Bean Array Demo</title>
	<body>
		<html:form action="inputScreen">
		<logic:iterate id="demoBean" name="demoForm" property="demoBeans" indexId="beanCount">
			 <b>Bean <%=beanCount+1%>:</b><br/>
			 <hr width="30%" align="left"/>
			 <table>
			<tr>
				<td><b>Name</b></td>
				<td><b>:</b></td>
				<td><bean:write name="demoBean" property="name"/></td>
			</tr>
			<tr>
				<td><b>Age</b></td>
				<td><b>:</b></td>
				<td><bean:write name="demoBean" property="age"/></td>
			</tr>
			<tr>
				<td><b>Sex</b></td>
				<td><b>:</b></td>
				<td><bean:write name="demoBean" property="sex"/></td>
			</tr>
			<tr>
				<td><b>Relationship Status</b></td>
				<td><b>:</b></td>
				<td><bean:write name="demoBean" property="married"/></td>
			</tr>
		</table>
		<hr width="30%" align="left"/>
        </logic:iterate>
		</html:form>
	</body>
</html:html>